package com.expert.common.jqgrid;

import java.io.Serializable;
import java.util.List;

/**
 * @描述: jqgrid的结果封装
 * @作者: Pengo.Wen
 * @日期: 2017-09-25 12:43
 * @版本: v1.0
 */
public class GridResult implements Serializable {

    /* 当前页数 */
    private int page;
    /* 总页数 */
    private int total;
    /* 总计录数  */
    private long records;

    private List<?> list;

    private Object userdata;

    public GridResult() {
    }

    public GridResult(int page, int total, long records, List<?> list) {
        this.page = page;
        this.total = total;
        this.records = records;
        this.list = list;
    }

    public GridResult(int page, int total, long records, List<?> list, Object userdata) {
        this.page = page;
        this.total = total;
        this.records = records;
        this.list = list;
        this.userdata = userdata;
    }

    public int getPage() {
        return page;
    }

    public void setPage(int page) {
        this.page = page;
    }
    public int getTotal() {
        return total;
    }
    public void setTotal(int total) {
        this.total = total;
    }
    public long getRecords() {
        return records;
    }
    public void setRecords(long records) {
        this.records = records;
    }
    public List<?> getList() {
        return list;
    }
    public void setList(List<?> list) {
        this.list = list;
    }

    public Object getUserdata() {
        return userdata;
    }

    public void setUserdata(Object userdata) {
        this.userdata = userdata;
    }
}
